# 列表推导式  字典推导式  集合推导式
# l = []
# for i in range(1, 101):
#     l.append(i)
# print(l)

# l = [i for i in range(1, 101)]
# print(l)

# l = []
# for i in range(1, 5):
#     for j in range(3):
#         l.append((i, j))

# l = [(i, j) for i in range(1, 5) for j in range(3)]
# print(l)

# l1 = [ i for i in range(1, 101) if i % 2 == 0]
# print(l1)

# q = [x if x % 3 == 0 else -x for x in range(1, 101)]
# print(q)

# d = {"a": 1, "b": 2, "c": 3}
# d1 = {}
# for k,v in d.items():
#     d1[v] = k
# print(d1)

# d1 = {v: k for k, v in d.items()}
# print(d1)

# 集合推导式
# d = {i for i in range(10)}
# print(d)

